package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("投诉解决方案")
@Entity
@Table(name = "complaint_solution_report")
public class ComplaintSolutionReport extends BaseEntity {

    @ApiModelProperty("创建报告人")
    private User user;

    @ApiModelProperty("跟进状态")
    private Integer reportType;

    @ApiModelProperty("投诉报告")
    private ComplaintReport complaintReport;

    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name = "report_status")
    public Integer getReportType() {
        return reportType;
    }

    public void setReportType(Integer reportType) {
        this.reportType = reportType;
    }

    @ManyToOne
    @JoinColumn(name = "complaint_report_id")
    public ComplaintReport getComplaintReport() {
        return complaintReport;
    }

    public void setComplaintReport(ComplaintReport complaintReport) {
        this.complaintReport = complaintReport;
    }
}
